﻿<%@ page language="C#" autoeventwireup="true" inherits="MembershipCard_Ticket_pass, App_Web_vztxk4oh" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>优惠券使用</title>
<meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" /> 
<meta content="black" name="apple-mobile-web-app-status-bar-style" /> 
<meta content="telephone=no" name="format-detection" /> 
<link rel="stylesheet" type="text/css" href="css/index.css" >
</head>
<body>
    <form id="form1" runat="server">
    <div class="passbox"> 
    <div class="passcon">
      <div class="passtie">
        <p>名称：
          <asp:Label ID="lblName" runat="server" Text=""></asp:Label>（密码）</p>
        <p>编号： <asp:Label ID="lblNo" runat="server" Text=""></asp:Label></p>
      </div>
      
     <p>最后一步：商家输入密码验证之后，即可完成优惠券的使用！</p> 
      </div>
      
     <div class="passnum">
       <div class="passkuang"><strong>商家密码：</strong><span runat="server" id="sp"></span></div>
       <ul>
         <li><a href="#" onclick="inp('1');">1</a></li>
         <li><a href="#" onclick="inp('2');">2</a></li>
         <li><a href="#" onclick="inp('3');">3</a></li>
         <li><a href="#" onclick="inp('4');">4</a></li>
         <li><a href="#" onclick="inp('5');">5</a></li>
         <li><a href="#" onclick="inp('6');">6</a></li>
         <li><a href="#" onclick="inp('7');">7</a></li>
         <li><a href="#" onclick="inp('8');">8</a></li>
         <li><a href="#" onclick="inp('9');">9</a></li>
         <li class="passtui" onclick="inr();">清空</li>
         <li><a href="#" onclick="inp('0');">0</a></li>
         <li class="passque"  onclick="check2()">确定</li>
       </ul>
    <asp:Button ID="Button2" Style="display: none;" runat="server" Text="确定" class="yanzheng"
                    OnClick="Button2_Click" />
                    <input type="hidden" runat="server" id="hidd" />
     <div class="passdd"></div>
    </div>
 </div>
    </form>
</body>
</html>

<script type="text/javascript">
    function inp(value) {
        document.getElementById("sp").innerHTML += value;
    }

    function inr() {
//        document.getElementById("sp").innerHTML = document.getElementById("sp").innerHTML.toString().substr(0, document.getElementById("sp").innerHTML.toString().lenght);
        document.getElementById("sp").innerHTML = "";
        }
        function check2() {

            document.getElementById("hidd").value = document.getElementById("sp").innerHTML;
                document.getElementById("Button2").click();
           
        }

</script>
